<?php
/**
 * 模板编译规则文件
 */
return array(
	array(
		0=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?\$([^\|]*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		1=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?foreach\s+\$?(.*?)\s+\$?(.*?)\s+\$?(.*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		2=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?\/foreach\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		3=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?if\s*?(.*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		4=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?else\s?if\s?(.*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		5=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?else\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		6=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?\/if\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		7=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?:(.*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		8=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?themes'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		9=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?eval\s+(.*?)'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		10=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?__HOST__'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		11=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?for\s+\$?(.*?)\s+in\s+range\((.*?)\s*?,\s*?(.*?)\s*?,\s*?(.*?)\s*?\)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		12=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?\/for'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		13=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?for\s+\$?(.*?)\s+in\s+range\((.*?),(.*?)\)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		14=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?\$(.*?)\|(\d+)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		15=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?__RUNTIME__(.*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		16=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?__QUERY__(.*?)\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		17=>'/(7\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?__TIMENOW__\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		18=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?\$(.*?)\|html\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		19=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?__PUBLIC__'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		20=>'/(\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?__UPLOAD__'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
		21=>'/(7\<!\-\-)?'.$GLOBALS["ora_cfg"]["tag_prefix"].'\s?_(.*?)_\s*?'.$GLOBALS["ora_cfg"]["tag_suffix"].'(\-\-\>)?/i',
	),
	array(
		0=>'<?php echo($\2);?>',
		1=>'<?php if($\2):foreach($\2 as $\3 => $\4): ?>',
		2=>'<?php endforeach;endif;?>',
		3=>'<?php if(\2):?>',
		4=>'<?php elseif(\2):?>',
		5=>'<?php else:?>',
		6=>'<?php endif;?>',
		7=>'<?php echo(\2) ;?>',
		8=>HTTP_HOST.'/themes/'.$GLOBALS["ora_cfg"]["themes"],
		9=>'<?php \2 ?>',
		10=>HTTP_HOST,
		11=>'<?php for($for_index=intval(\3);$for_index<\4;$for_index=$for_index+intval(\5)): $\2 = $for_index; ?>',
		12=>'<?php endfor;?>',
		13=>'<?php for($for_index=intval(\3);$for_index<\4;$for_index++): $\2 = $for_index; ?>',
		14=>'<?php echo(htmlspecialchars(msubstr($\2,0,\3))); ?>',
		15=>'<?php printf("%.3f",(microtime(TRUE)-$GLOBALS["__STARTTIME__"])\2); ?>',
		16=>'<?php echo($GLOBALS["__QUERY__"]\2); ?>',
		17=>'<?php echo(date_default_timezone_get().", ".date("Y-m-d H:i:s",time())); ?>',
		18=>'<?php echo(htmlspecialchars_decode($\2)); ?>',
		19=>HTTP_HOST."/public",
		20=>HTTP_HOST."/upload",
		21=>'<?php echo(\2); ?>',
		
	)
);
?>